package com.buba.test.service.impl;

import com.buba.test.service.LoginService;
import com.buba.test.service.UserService;

import java.util.Date;

public class UserServiceImpl implements UserService {
    LoginService loginService = new LoginServiceImpl();

    @Override
    public void addUser() {
        loginService.log(new Date().toLocaleString()+"addUser()");
        System.out.println("去持久层添加用户");
    }

    @Override
    public void delUser() {
        loginService.log(new Date().toLocaleString()+"delUser()");
        System.out.println("去持久层删除用户");

    }

    @Override
    public void selUser() {
        loginService.log(new Date().toLocaleString()+"selUser()");
        System.out.println("去持久层查询用户");

    }

    @Override
    public void updUser() {
        loginService.log(new Date().toLocaleString()+"updUser()");
        System.out.println("去持久层修改用户");

    }
}
